/* @author Kusal Samarakoon */

/*function printPage() {
 alert("ok") ;
 *//*var display_setting = "toolbar=no,location=no,directories=no,menubar=no,";
 display_setting += "scrollbars=no,width=750, left=0,top=0,width=100px,height=100px";
 // height=600, left=100, top=25
 // left=0,top=0,width=100px,height=100px
 document.getElementById("printbtn").style.display = "none";

 //var content_innerhtml = document.getElementById("detail-land-permits-outer").innerHTML;
 //var document_print = window.open("", "", display_setting);
 var document_print = window.print();
 //document_print.document.open();
 //document_print.write("<head><link rel=\"stylesheet\" type=\"text/css\" href=\"/eLand/css/style.css\"/>");
 //document_print.write("<link rel=\"stylesheet\" type=\"text/css\" media=\"print\" href=\"/eLand/css/print.css\"/></head>");
 //document_print.write(content_innerhtml);

 //document_print.close();


 document.getElementById("printbtn").style.display = "inline";


 return false;*//*
 }*/
function printPage() {

    document.getElementById("printbtn").style.display = "none";
    var document_print = window.print();

    document.getElementById("printbtn").style.display = "inline";
    location.reload();
    return false;
}

function printGrantLongPage() {

    document.getElementById("printbtn").style.display = "none";
    document.getElementById("deedPrint").style.display = "none";
    var document_print = window.print();

    document.getElementById("printbtn").style.display = "inline";
    document.getElementById("deedPrint").style.display = "inline";
    location.reload();
    return false;
}
function printInitialPage() {
    document.getElementById("printbtn").style.display = "none";
    document.getElementById("land-registration-module-home-title").style.display = "none";
    //var content_innerhtml = document.getElementById("detail-land-permits-outer").innerHTML;
    //var document_print = window.open("", "", display_setting);
    var document_print = window.print();
    //document_print.document.open();
    //document_print.write("<head><link rel=\"stylesheet\" type=\"text/css\" href=\"/eLand/css/style.css\"/>");
    //document_print.write("<link rel=\"stylesheet\" type=\"text/css\" media=\"print\" href=\"/eLand/css/print.css\"/></head>");
    //document_print.write(content_innerhtml);

    //document_print.close();


    document.getElementById("printbtn").style.display = "inline";
    document.getElementById("land-registration-module-home-title").style.display = "inline";
    location.reload();
    return false;
}

function printAvailableLandPage() {


    document.getElementById("printbtn").style.display = "none";
    document.getElementById("land-registration-module-home-title").style.display = "none";

    var document_print = window.print();


    document.getElementById("printbtn").style.display = "inline";
    document.getElementById("land-registration-module-home-title").style.display = "inline";
    location.reload();
    return false;
}

function printUnregisteredOrganizationReportPage() {


    document.getElementById("printbtn").style.display = "none";
    document.getElementById("org-report-module-home-title").style.display = "none";

    var document_print = window.print();


    document.getElementById("printbtn").style.display = "inline";
    document.getElementById("org-report-module-home-title").style.display = "inline";
    location.reload();
    return false;
}
function printInitApplicationReportPage() {


    document.getElementById("printbtn").style.display = "none";
    document.getElementById("land-registration-module-home-title").style.display = "none";

    var document_print = window.print();


    document.getElementById("printbtn").style.display = "inline";
    document.getElementById("land-registration-module-home-title").style.display = "inline";
    location.reload();
    return false;
}


function printLetterPage() {

    document.getElementById("printbtn").style.display = "none";
    document.getElementById("message-box").style.display = "none";
    document.getElementById("set-due-date").style.display = "none";
    document.getElementById("org-info-module-home-title").style.display = "none";
    var document_print = window.print();


    document.getElementById("printbtn").style.display = "inline";
    document.getElementById("set-due-date").style.display = "inline";
    document.getElementById("org-info-module-home-title").style.display = "inline";


    location.reload();
    return false;
}

